package com.activity.bean;

import android.graphics.Rect;
import android.os.Parcel;
import android.os.Parcelable;

import com.previewlibrary.enitity.IThumbViewInfo;

import androidx.annotation.Nullable;

public class IThumbViewInfos  implements Parcelable,IThumbViewInfo {
    private  String image;

    protected IThumbViewInfos(Parcel in) {
        this.image = in.readString();


    }

    public IThumbViewInfos(String url){
        this.image = url;

    }
    public static final Creator<IThumbViewInfo> CREATOR = new Creator<IThumbViewInfo>() {
        @Override
        public IThumbViewInfo createFromParcel(Parcel in) {
            return new IThumbViewInfos(in);
        }

        @Override
        public IThumbViewInfo[] newArray(int size) {
            return new IThumbViewInfos[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {

        dest.writeString(this.image);

    }

    @Override
    public String getUrl() {
        return image;
    }

    @Override
    public Rect getBounds() {
        return null;
    }

    @Nullable
    @Override
    public String getVideoUrl() {
        return null;
    }
}
